package com.csw02;

import com.util.JDBCUtil02;

import java.sql.ResultSet;

public class SelectMysql02 {
    public static void main(String[] args) throws Exception{
        String sql="select * from student where sid=?";
        String sql01="select * from student where sid=? and sex=?";
        ResultSet rs = JDBCUtil02.select(sql01, "1010","1");
        while (rs.next()){
            String name = rs.getString("name");
            System.out.println(name);
        }
        JDBCUtil02.closeALL();
    }
}
